import request from '@/utils/request'
// 我的值班操作
export function getMyDuty(params) {
  return request({
    url: 'dutyOperation/loadDutyMessage',
    method: 'post',
    data: params
  })
}
// 我的消息
export function getMyMessage(params) {
  return request({
    url: 'message/loadMyMessage',
    method: 'post',
    data: params
  })
}

// 我的试验任务
export function getMyProject(params) {
  return request({
    url: 'message/loadRunningMyProjectMessage',
    method: 'post',
    data: params
  })
}
// 开机率
export function getOpenDeviceRate(params) {
  return request({
    url: 'statisticAnalysis/loadOpenDeviceRate',
    method: 'post',
    data: params
  })
}
export function testProjectAndDeviceStatistics(params) {
  return request({
    url: 'homePage/testProjectAndDeviceStatistics',
    method: 'get',
    params
  })
}
export function currentYearTestProjectStatistics(params) {
  return request({
    url: 'homePage/currentYearTestProjectStatistics',
    method: 'get',
    params
  })
}
export function testProjectStatisticsByMonth(params) {
  return request({
    url: 'homePage/testProjectStatisticsByMonth',
    method: 'get',
    params
  })
}
export function deviceUsageStatistics(params) {
  return request({
    url: 'homePage/deviceUsageStatistics',
    method: 'get',
    params
  })
}
// 芯片库分布情况
export function countChipDistribution(data) {
  return request({
    url: '/homePage/countChipDistribution',
    method: 'post',
    data
  })
}
// 驱动库分布情况
export function countDriverDistribution(data) {
  return request({
    url: '/homePage/countDriverDistribution',
    method: 'post',
    data
  })
}
// 项目数量统计
export function countProjectDistribution(data) {
  return request({
    url: '/homePage/countProjectDistribution',
    method: 'post',
    data
  })
}
// 芯片使用情况分析
export function countChipUsage(data) {
  return request({
    url: '/homePage/countChipUsage',
    method: 'post',
    data
  })
}
